/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.car;

import za.ac.cput.assignment2.Vehicle;

/**
 *
 * @author 208145427
 */
//Polymorphism and encapusation class
public  class Car implements Vehicle {
    private String name;
    
  public Car(){
      
  }
  public Car(String nm){
      name = nm;  
  }
    
    @Override
    public int numDoor(int doors) {
        
        return doors;
    }

    /**
     * @return the name
     */
  
  
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
    
}
